﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using YArchitech.LIB;

namespace YArchitech.Temp
{
	public partial class IntroSystemCal : System.Windows.Forms.Form
	{
		public IntroSystemCal()
		{
			this.InitializeComponent();
		}

		private void IntroSystemCal_Load(object sender, EventArgs e)
		{
			base.Icon = Resource.YArchitechIcon;
			this.Text = "盈建科水系统水力计算说明";
			this.InitialInfo();
		}

		private void InitialInfo()
		{
			string pipeSystemCalIntro = HYDataAccess.GetPipeSystemCalIntro();
			if (!string.IsNullOrEmpty(pipeSystemCalIntro) && File.Exists(pipeSystemCalIntro))
			{
				this.richTextBox1.LoadFile(pipeSystemCalIntro, RichTextBoxStreamType.PlainText);
			}
		}
	}
}
